package com.ruoyi.qt.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 做题记录对象 qt_record
 * 
 * @author zqq
 * @date 2021-12-06
 */
public class QtRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String recordId;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** 试卷id */
    @Excel(name = "试卷id")
    private String paperId;

    /** 答案 */
    @Excel(name = "答案")
    private String recordAnswer;

    /** 状态 */
    @Excel(name = "状态")
    private Integer recordState;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordTime;

    /** 备用字符串 */
    @Excel(name = "备用字符串")
    private String recordStr;

    /** 备用整数 */
    @Excel(name = "备用整数")
    private Long recordInt;
    private String index;

    public String getIndex() {
        return index;
    }

    public void setIndex(String index) {
        this.index = index;
    }

    public void setRecordId(String recordId)
    {
        this.recordId = recordId;
    }

    public String getRecordId() 
    {
        return recordId;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setPaperId(String paperId) 
    {
        this.paperId = paperId;
    }

    public String getPaperId() 
    {
        return paperId;
    }
    public void setRecordAnswer(String recordAnswer) 
    {
        this.recordAnswer = recordAnswer;
    }

    public String getRecordAnswer() 
    {
        return recordAnswer;
    }
    public void setRecordState(Integer recordState) 
    {
        this.recordState = recordState;
    }

    public Integer getRecordState() 
    {
        return recordState;
    }
    public void setRecordTime(Date recordTime) 
    {
        this.recordTime = recordTime;
    }

    public Date getRecordTime() 
    {
        return recordTime;
    }
    public void setRecordStr(String recordStr) 
    {
        this.recordStr = recordStr;
    }

    public String getRecordStr() 
    {
        return recordStr;
    }
    public void setRecordInt(Long recordInt) 
    {
        this.recordInt = recordInt;
    }

    public Long getRecordInt() 
    {
        return recordInt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("userId", getUserId())
            .append("paperId", getPaperId())
            .append("recordAnswer", getRecordAnswer())
            .append("recordState", getRecordState())
            .append("recordTime", getRecordTime())
            .append("recordStr", getRecordStr())
            .append("recordInt", getRecordInt())
            .toString();
    }
}
